cmake_minimum_required(VERSION 3.5)

project(Engine VERSION 1.0.0)

set(CMAKE_CXX_STANDARD 17)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)

add_library(${PROJECT_NAME} SHARED 
    src/Ray3.cpp
    src/Matrix.cpp
    src/Quaternion.cpp
    src/GameGuid.cpp
)

include_directories(include/Engine)

target_link_libraries(${PROJECT_NAME} PUBLIC nlohmann_json spdlog)
set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN")
target_include_directories(${PROJECT_NAME} PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>" "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
